package com.wssnail.redis.lock;

/**
 * @Author: 熟透的蜗牛
 * @CreateTime: 2022-07-14  09:38
 * @Description: 分布式锁
 * @Version: 1.0
 */
public interface DistributeLock {

    //获取锁
    public boolean tryLock(String lockKey, String value, Long expireTime);

    //释放锁
    public boolean releaseLock(String lockKey, String value);
}
